package naga.x.net.impl.pomelo.body.response;

import java.util.Map;

import naga.x.net.impl.pomelo.config.Protobuf;

public class HandshakeResponseBody {

	private int code;
	private Sys sys;
	
	public HandshakeResponseBody() {}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Sys getSys() {
		return sys;
	}

	public void setSys(Sys sys) {
		this.sys = sys;
	}

	public static class Sys {
		private Map<String, String> codeToRoute;
		private Map<String, Short> routeToCode;
		private String dictVersion;
		private Map<String, Short> dict;
		private int heartbeat;
		private boolean useDict;
		private boolean useProto;
		private Protobuf protos;
		public Sys() {}
		public Map<String, String> getCodeToRoute() {
			return codeToRoute;
		}
		public void setCodeToRoute(Map<String, String> codeToRoute) {
			this.codeToRoute = codeToRoute;
		}
		public Map<String, Short> getRouteToCode() {
			return routeToCode;
		}
		public void setRouteToCode(Map<String, Short> routeToCode) {
			this.routeToCode = routeToCode;
		}
		public String getDictVersion() {
			return dictVersion;
		}
		public void setDictVersion(String dictVersion) {
			this.dictVersion = dictVersion;
		}
		public Map<String, Short> getDict() {
			return dict;
		}
		public void setDict(Map<String, Short> dict) {
			this.dict = dict;
		}
		public int getHeartbeat() {
			return heartbeat;
		}
		public void setHeartbeat(int heartbeat) {
			this.heartbeat = heartbeat;
		}
		public boolean isUseDict() {
			return useDict;
		}
		public void setUseDict(boolean useDict) {
			this.useDict = useDict;
		}
		public boolean isUseProto() {
			return useProto;
		}
		public void setUseProto(boolean useProto) {
			this.useProto = useProto;
		}
		public Protobuf getProtos() {
			return protos;
		}
		public void setProtos(Protobuf protos) {
			this.protos = protos;
		}
	}
	
}
